﻿<UserControl
    x:Class="Didsoft.SalesLive.UI.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

        <Border x:Name="ContentBorder">

            <navigation:Frame x:Name="ContentFrame" 
                              Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed" Margin="154,0,0,0" >
                <navigation:Frame.UriMapper>
                  <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                    <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                  </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Border>

        <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Left" Width="152">
        	<Grid.Background>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        			<GradientStop Color="Black" Offset="0"/>
        			<GradientStop Color="#FF44A2CA" Offset="1"/>
        		</LinearGradientBrush>
        	</Grid.Background>
            <StackPanel Orientation="Vertical" x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}" Margin="25,46,0,198" VerticalAlignment="Stretch" Width="91">

                    <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Home" TargetName="ContentFrame" Content="Inicio"/>               
                    
                   

                    <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}" 
                                     Content="Registro" Click="Link3_Click"/>

                <HyperlinkButton x:Name="Link4" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/VwUsuarios" TargetName="ContentFrame" Content="Usuarios"/>
                <HyperlinkButton x:Name="Link5" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/VwRoles" TargetName="ContentFrame" Content="Roles"/>
                <HyperlinkButton x:Name="Link6" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/VwPersonas" TargetName="ContentFrame" Content="Personas"/>
            </StackPanel>
           

        </Grid>
        <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}" Margin="12,-1,0,0">
            <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}" Width="126">
                <ContentControl Style="{StaticResource LogoIcon}" />
                <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Sales Live" Width="80" />
            </StackPanel>
        </Border>
    </Grid>

</UserControl>